﻿namespace GuessTheAnswer.Model.Subject;


/// <summary>
/// 判断题
/// </summary>
public class JudgeSubject : ISubject
{
    public string TypeName => "判断题";

    public IAnswerRound CreateRound() => new JudgeRound();
}

/// <summary>
/// 判断题回合
/// </summary>
internal class JudgeRound : IAnswerRound
{
    public bool IsCorrect { get; private set; }

    public int RoundNumber { get; private set; } = 0;



    public void Correct()
    {
        IsCorrect = true;
    }

    public void Last() { }

    public void Next() { }

    public string RoundAnswer() => IsCorrect ? "√" : "×";
}